<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <link href="manage/manage.css" rel="stylesheet" type="text/css">
<link href="style/css.css"  rel="stylesheet" type="text/css" />
    <title></title>
  </head>
  <body style="margin:0px; text-align:center;" bgcolor="#F1F1F1">
   <s:action name="showTop" executeResult="true"/>
    <s:if test="pageObj.data.size()>0">
   <table width="867"  border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td width="170" height="29" align="center" background="images/lm1_bg.jpg">发送时间</td>
              <td width="365" align="center" background="images/lm1_bg.jpg">彩信标题</td>
              <td width="112" align="center" background="images/lm1_bg.jpg">彩信分类</td>
              <td width="110" align="center" background="images/lm1_bg.jpg">彩信分组</td>
              <td width="82" align="center" background="images/lm1_bg.jpg" >操作</td>
            </tr>
           
            <s:iterator value="pageObj.data" var="msglist" status="st">
             <s:if test="#st.odd"><tr bgcolor="#FFFFFF"></s:if>
             <s:else> <tr bgcolor="#F7F7F7"></s:else>
              <td height="30" align="center"class="lbsx"><input type="hidden" name="lname" id="lname" value="${likeName}"/><s:date name="#msglist.addTime" format="yyyy-MM-dd  HH:mm:ss"/></td>
              <td align="center" class="lbsx">${msglist.title}</td>
              <td align="center" class="lbsx">${msglist.bisType.name}</td>
              <td align="center" class="lbsx">${msglist.bisGroup.name}</td>
              <td align="center"  class="lbsx">
               <s:if test="#msg.canSend">
      				<a href="msg!sendPage.action?first=1&mubanId=${msg.id}">发送</a>&nbsp;&nbsp;&nbsp;&nbsp;
      		</s:if>
              <a href="mobanListAction!yulan.action?id=${msglist.id}" target="_blank">预览</a></td>
          </tr>
            </s:iterator>
             <s:if test="pageObj.totalRecord>10">
            <tr>
              <td height="29" colspan="7" align="right" background="images/lm1_bg.jpg" > 
              <a href="javascript:serchMsg(1);">首页</a>
              <s:if test="pageObj.hasPrePage==false">上一页</s:if>
              <s:else> <a href="javascript:serchMsg(${pageObj.pageNo-1});">上一页</a></s:else>
   
              &nbsp;<s:if test="pageObj.hasNextPage==false">下一页</s:if>
              <s:else> <a href="javascript:serchMsg(${pageObj.pageNo+1});" >下一页</a></s:else>
              
           &nbsp; <s:if test="pageObj.pageNo==pageObj.totalPage">末页</s:if>
       <s:else><a href="javascript:serchMsg(${pageObj.totalPage})">末页</a></s:else>

                 &nbsp;&nbsp;第${pageObj.pageNo}页
              &nbsp;|&nbsp;共${pageObj.totalPage}页&nbsp;|&nbsp;共${pageObj.totalRecord}条 转至
         <s:select list="pageObj.listNum" onchange="serchMsg(this.value)" id="pageNo" name="pageNo">
            </s:select></td>
            </tr>
            </s:if>  
          </table>
       </s:if>
     <s:else><p style="color: red;font-size: 12px;text-align: center;">没有查询到相关的彩信</p></s:else>
     <br/> <br/> <br/> <br/>
<%@include file="foot_end.jsp"%>
  </body>
</html>
